package com.ruoyi.purchase.service.impl;

import java.math.BigDecimal;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.purchase.mapper.ZsPurchaseProcessMapper;
import com.ruoyi.purchase.domain.ZsPurchaseProcess;
import com.ruoyi.purchase.service.IZsPurchaseProcessService;

/**
 * purchaseService业务层处理
 * 
 * @author ruoyi
 * @date 2022-03-17
 */
@Service
public class ZsPurchaseProcessServiceImpl implements IZsPurchaseProcessService 
{
    @Autowired
    private ZsPurchaseProcessMapper zsPurchaseProcessMapper;

    /**
     * 查询purchase
     * 
     * @param id purchase主键
     * @return purchase
     */
    @Override
    public ZsPurchaseProcess selectZsPurchaseProcessById(Long id)
    {
        return zsPurchaseProcessMapper.selectZsPurchaseProcessById(id);
    }

    /**
     * 查询purchase列表
     * 
     * @param zsPurchaseProcess purchase
     * @return purchase
     */
    @Override
    public List<ZsPurchaseProcess> selectZsPurchaseProcessList(ZsPurchaseProcess zsPurchaseProcess)
    {

        return zsPurchaseProcessMapper.selectZsPurchaseProcessList(zsPurchaseProcess);
    }

    /**
     * 新增purchase
     * 
     * @param zsPurchaseProcess purchase
     * @return 结果
     */
    @Override
    public int insertZsPurchaseProcess(ZsPurchaseProcess zsPurchaseProcess)
    {

        return zsPurchaseProcessMapper.insertZsPurchaseProcess(zsPurchaseProcess);
    }

    /**
     * 修改purchase
     * 
     * @param zsPurchaseProcess purchase
     * @return 结果
     */
    @Override
    public int updateZsPurchaseProcess(ZsPurchaseProcess zsPurchaseProcess)
    {
        return zsPurchaseProcessMapper.updateZsPurchaseProcess(zsPurchaseProcess);
    }

    /**
     * 批量删除purchase
     * 
     * @param ids 需要删除的purchase主键
     * @return 结果
     */
    @Override
    public int deleteZsPurchaseProcessByIds(Long[] ids)
    {
        return zsPurchaseProcessMapper.deleteZsPurchaseProcessByIds(ids);
    }

    /**
     * 删除purchase信息
     * 
     * @param id purchase主键
     * @return 结果
     */
    @Override
    public int deleteZsPurchaseProcessById(Long id)
    {
        return zsPurchaseProcessMapper.deleteZsPurchaseProcessById(id);
    }
}
